home *** CD-ROM | disk | FTP | other *** search
- Path: soap.news.pipex.net!pipex!usenet
- From: paul.ganney@dial.pipex.com (Paul S. Ganney)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP need Date class !!!
- Date: Thu, 18 Apr 1996 13:16:34 GMT
- Organization: Medical Physics, Hull.
- Message-ID: <4l5f9e$gp4@soap.news.pipex.net>
- References: <316D3335.1487@enitab.fr>
- NNTP-Posting-Host: an105.du.pipex.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- ppx <ppx@enitab.fr> wrote:
-
- >Hi.
- >I Need a Date class in C++ with source available wich handle date
- >< 1970 and > 2038 under Windows 3.1,95,and NT. I use MSVC 1.52.
- >Thanks
- >ppx@enitab.fr
-
- Try something like this:
-
- // date class definition
-
- enum dformat{SHORT,LONG};
-
- class date{
- int day,month,year;
- dformat df;
- public:
- date(int d=1, int m=1, int y=1980) {df=SHORT;day=d;month=m;year=y;};
- void set(int d, int m, int y);
- void setformat(dformat d);
- void display();
- };
-
- Paul.
- --------------------------------------------------------------
- Expressed opinions are usually my own.
- --------------------------------------------------------------
-
-